home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.07 Jul 90 / Data Exchange ƒ / test.make < prev    next >
Encoding:
Text File  |  1989-01-19  |  1.5 KB  |  48 lines  |  [TEXT/MPS ]

  1. #Make file to make either pascal, modula, or c versions of the Driver
  2. #program call the pascal unit 'Test.p'
  3. #Make target 'pTest' for the pascal version, 'mTest' for modula, and 
  4. #'cTest' for c
  5.  
  6. # Everybody uses the actual pascal unit
  7. test.p.o        ƒ    test.p
  8.    pascal test.p
  9.     
  10. # This is the pascal version of the driver
  11. driver.p.o ƒ driver.p test.p
  12.    pascal Driver.p
  13. pTest    ƒ    test.p.o driver.p.o
  14.    link -t "MPST" -c "MPS "    ∂
  15.         driver.p.o test.p.o    ∂
  16.         "{Libraries}"Runtime.o   ∂
  17.         "{PLibraries}"Paslib.o   ∂
  18.         -o pTest
  19.  
  20. # This is the C version
  21. driver.c.o ƒ driver.c 
  22.    c driver.c
  23. # Note that I have turned off warnings
  24. cTest ƒ driver.c.o test.p.o
  25.    Link -w driver.c.o test.p.o   ∂
  26.         -t "MPST" -c "MPS "       ∂
  27.         "{CLibraries}"CRuntime.o   ∂
  28.         "{CLibraries}"CInterface.o ∂
  29.         "{CLibraries}"StdCLib.o    ∂
  30.         "{CLibraries}"CSANELib.o   ∂
  31.         "{PLibraries}"PasLib.o     ∂
  32.         -o cTest
  33.  
  34. # This is the Modula version
  35. test.SBM ƒ test.def
  36.    modula test.def
  37. test.a.o ƒ test.a
  38.    asm test.a
  39. driver.mod.o ƒ driver.mod test.SBM
  40.    modula driver.mod
  41. mTest ƒ driver.mod.o test.p.o test.a.o
  42.    Link -ma "TEST"="Test__Globals"     ∂
  43.         -t "MPST" -c "MPS "            ∂
  44.         driver.mod.o test.p.o test.a.o ∂
  45.         "{MLibraries}"MRuntime.o       ∂
  46.         "{Libraries}"Runtime.o         ∂
  47.         -o mTestiled and linked version of FixPObj
  48.  *"L"n"êZÍ®íX